package com.ychs.lawyer.mapper;

import com.ychs.lawyer.DTO.RoleMenu;
import com.ychs.lawyer.bean.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: clh
 * @Date: 2024/07/25/18:59
 * @Description:
 */
@Mapper
public interface RoleMapper {

    String getRoleNamekById(Integer id);
     List<Role> getRoles();

    int editRole(RoleMenu roleMenu);

    int deleteMenuId(RoleMenu roleMenu);

    int editRoleName(RoleMenu roleMenu);

    int addRole(RoleMenu roleMenu);

    int addRoleMenu(RoleMenu roleMenu);

    List<Role> selectRoleName();

    int deleteRoleName(Integer roleId);

    int deleteRoleMenu(Integer roleId);
}
